<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>个人意见汇总</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<body>
		
		<form action="usertopic.action" method="post" id="ctl00">
			<div>标题:
				<input name="topics.topicname" type="text" maxlength="100" value="${topic.topicname }"/><font color="red"><s:fielderror fieldName="topicnameerror"/></font>
			</div>
			意见建议:<textarea rows="3" cols="3" name="topics.topiccontent">${topic.topiccontent }</textarea>
			<font color="red"><s:fielderror fieldName="topiccontenterror"/></font>
			<input type="hidden" name="topics.uid" value="${curruser.uid}" />
			<input type="hidden" name="topics.uname" value="${curruser.uname}" />
			<input type="submit" value="提交" />
		</form>
		<table width="500">
			<tr>
				<td>我提交的意见</td><td>创建时间</td><td>有新回复</td><td>查看回复</td>
			</tr>
			<c:forEach var="topic" items="${topics}" varStatus="status">
				<tr>
					<td>${topic.topicname}</td>
					<td>${topic.topictime}</td>
					<td>${topic.isuserreturn}</td>
					<td><a href="topicchildlist.action?topicId=${topic.tid }&page=1&size=10">查看</a></td>
				</tr>
			</c:forEach>
		</table>
		<script type="text/javascript" src="../js/jquery-1.4.min.js"></script>
		<script type="text/javascript" src="../js/jquery.validate.js"></script>
		<script type="text/javascript">
		$(function(){
			
		});
		</script>
	</body>
</html>

